package com.neo.impatient.C13_Collection.C13_02_VariableCollection

object VaribelCollectionTest {

  def digits(n: Int): Set[Int] =
    if (n < 0) digits(-n)
    else if (n < 10) Set(n)
    else digits(n/10) + (n % 10)



  def main(args: Array[String]): Unit = {

    val  vv = Vector(1,2,3,4)

    println(digits(99))
    println(vv(0))
  }
}
